package com.cgwx.service;

import com.cgwx.data.dto.NpjFileFolder;
import com.cgwx.entity.FileFolder;
import com.cgwx.entity.Folder;
import com.cgwx.entity.PersonalRecycleBin;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public interface IFolderService {
    List<Folder> getPersonalTree(String account);

    List<Folder> getFolderTree(String account, String deptId, String roomId, String type, String visable);

    List<NpjFileFolder> globalFileSearch(String account, String depId, String keyword, String visibility, String type, String column, String sort);

    List<FileFolder> OpenFolder(String account, String depId, String entityId, String keyword, String type, String column, String sort, String visibility);

    List<String> OpenPersonalFavorites(String entityId, String account);

    List<Folder> getFolder(Folder folder);

    String deleteFolderById(String entityId);

    String updateFolderById(Folder folder);

    String insertPersonalFolder(String account, String userName, String entityName, String parentId);

    String insertFolder(String account, String userName, String deptId, String roomId, String entityName, String parentId, String type);

    @Transactional
    String createFolder(String account, String userName, String roomId, String entityName, String parentId);

    String generateEntityId();
}
